import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
    name: 'wmsOrderStatus',
    pure: true
})
export class WmsOrderStatusPipe implements PipeTransform {
    private static WmsOrderStatus = {
        'BIAN_JI': '编辑',
        'DAI_RU_KU': '待入库',
        'BU_FEN_RU_KU': '部分入库',
        'YI_RU_KU': '已入库'
    };

    transform(value: any, ...args: any[]): any {
        return WmsOrderStatusPipe.WmsOrderStatus[value] ? WmsOrderStatusPipe.WmsOrderStatus[value] : '未知状态';
    }
}
